 
-----------------------------
Generating Binomial N samples
p =  0.1 N =  100
Number of Samples =  2500000
  
  Generating Binomial Distribution samples.
  Date and time plus nanoseconds
Thu Jun 19 16:07:38 EDT 2014
533495172
  
[1] 0.1
[1] 100
[1] "Absolute difference of empirical moments from theoretical ones:"
[1] -0.0010556 -0.0284868 -0.5510420 -9.3879060
[1] "Relative difference of empirical moments from theoretical ones:"
[1] -0.0001055600 -0.0002613468 -0.0004314453 -0.0005891323
[1] "Absolute difference of empirical central moments from theoretical ones:"
[1]  8.225470e-16 -7.375914e-03  1.535984e-02 -1.855000e-01
[1] "Relative difference of empirical central moments from theoretical ones (except first):"
[1] -6.766894e-05  1.202618e-05 -1.164094e-05
                         test   P.value KS.test
1                  Chi Square 0.4901332  Passed
2            Likelihood Ratio 0.4901332  Passed
3               Freeman-Tukey 0.8192068  Passed
4 Power Divergence (lambda=2) 0.5140173  Passed
 
-----------------------------
Taking first  1000000 samples
p =  0.1 N =  100
 
[1] 0.1
[1] 100
[1] "Absolute difference of empirical moments from theoretical ones:"
[1]  -0.000582  -0.043978  -1.187466 -24.994714
[1] "Relative difference of empirical moments from theoretical ones:"
[1] -0.0000582000 -0.0004034679 -0.0009297416 -0.0015685280
[1] "Absolute difference of empirical central moments from theoretical ones:"
[1] -3.616272e-16 -3.233834e-02 -2.706846e-02 -1.538194e+00

	One-sample Kolmogorov-Smirnov test

data:  bin.unif
D = 0.0004, p-value = 0.4187
alternative hypothesis: two-sided

